var errtimeout     = 4000;
var errclosetimer  = 0;
var errover = 0;

//Closetimer starten
function closetimerERR() {
	errclosetimer = window.setTimeout(closeERR, errtimeout);
}

function closeERR() {
	document.getElementById('fehlermeldung').style.visibility = 'hidden';
}

function cancelCloseERR() {
	if(errclosetimer) {
		window.clearTimeout(errclosetimer);
		errclosetimer = null;
	}
}